package com.medisign.sign.log.dao;

import com.medisign.sign.log.pojo.TbSignData;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import java.util.List;

public interface TbSignDataDao extends JpaRepository<TbSignData, Long>, JpaSpecificationExecutor<TbSignData> {

    TbSignData findByFileCodeAndStrategy(String fileCode, String strategy);

    TbSignData findByFileCode(String fileCode);

    void deleteByFileCodeAndStrategy(String fileCode, String strategy);

    List<TbSignData> findByTimestampIsNotNullAndStrategy(String strategy);
}
